using System;
using System.Collections.Generic;
using System.Text;
using Castle.DynamicProxy;

namespace IDM.Server
{
    static class SecurityManager
    {
        #region Methods

        #region Public

        #region CheckSecurity
        /// <summary>
        /// Check wheater specified invocation can proceed. Based on 
        /// security objects.
        /// </summary>
        /// <param name="invocation">Information on function to invoke</param>
        /// <returns>True wheater invocation may proceed</returns>
        /// <param name="args">Arguments to pass to the function</param>
        public static bool CheckSecurity(IDM.Types.Session session, IInvocation invocation, params object[] args)
        {
            // TODO: Currently everything passes
            return true;
        }
        #endregion

        #endregion

        #endregion
    }
}
